#!/usr/bin/env bash
# 使用绝对路径避免意外
base_folder=/home/hanxiao/Desktop/TEST_t

read -p "请输入当天目标目录: " num

if ! [[ "$num" =~ ^[0-9]+$ ]]; then
  echo "输入的不是数字，请重新运行脚本并输入数字！"
  exit 1
fi

folder_name=$base_folder/$(date +%Y-%m-%d)/V$num

cd $folder_name

